package com.yoo.ons.base.adpater

/**
 * 一个业务事件的状态管理.
 */
enum class LoadStatus {
    SUCCESS,
    IDLE,
    LOADING,
    FAILURE;
    val isLoading get() = this == LOADING
}

fun LoadStatus?.isRefreshing(): Boolean = this?.isLoading ?: false